﻿#ifndef ANALYZER_H
#define ANALYZER_H

#include <string>
#include <QString>
#include <QFile>
#include <QFileInfo>
#include <QJsonDocument>
#include <QJsonObject>
#include <QDebug>

#include <opencv2/opencv.hpp>

using namespace std;
using namespace cv;

class Analyzer
{
public:
    Analyzer();
    Analyzer(const QString &filePath);

    bool openFile(const QString &filePath);
    bool open();
    void printVideoInfo();
    void writeVideoInfo();

    int getFrameCount() const;
    int getFrameWidth() const;
    int getFrameHeight() const;
    int getFrameRate() const;

private:
    QString _filePath;
    VideoCapture capture;
};

#endif // ANALYZER_H
